package com.canaan.common.encrypt;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.Filter;

/**
 * Filter配置
 */
@Configuration
public class ErpFilterConfig {

    @Bean
    public FilterRegistrationBean addRequestWrapperFilter() {
        FilterRegistrationBean<Filter> registration = new FilterRegistrationBean<>();
        registration.setFilter(new HttpRequestDecodeFilter());
        registration.addUrlPatterns("/edi/*");
        return registration;
    }


}
